<?php
include_once "common/db.connection.php";
include_once "common/inc/class.content.inc.php";

$content = new PageContent($db);
$title = $_GET['name'];
$blocksum = $content->getBlocksSummary($title);
	echo '
					<header>
						<aside>
						<img src =\''. $blocksum['blocks_dir']."/". $blocksum['BlocksThumb'] . '\' />
						</aside>
						<p id="sum_title">'. $blocksum['BlocksName'].'</p>
						<br/>
						<p id="sum_auth"> By: '. $blocksum['FirstName']. " " . $blocksum['LastName'] . '</p>
						<br />
						<p>Genre: Action and Adventure</p>
						<br />
						<p>Pages: ' . $blocksum['pages'] .'</p>
						<br />
						<p>Likes: 120</p>
						<br />
						<p>Published: '. $blocksum['published'] .'</p>

						
					</header>
					
					<article>
					<nav>
						<ul>
						<li><a id="read" target="_blank" href="blocksreader.php?name='.$title.'"> Read</a></li>
						<li><a id="subscribe"">+ Subscribe</a></li>
						<li><a class="selected">Overview</a></li>
						<li><a>Details</a></li>
						<li><a>Comments</a></li>
						<li><a>Related</a></li>
						</ul>
						</nav>
					<div>
					<p>'. $blocksum['Summary'] . '</p>
					</div>
					</article>';
	

?>